import 'package:boss/models/printer.dart';
import 'package:boss/textStyle/text_style.dart';
import 'package:boss/ui/widget/image/base_image.dart';
import 'package:hi_common/hi_common.dart';
import 'package:flutter/material.dart';

class PrinterItem extends StatelessWidget {
  final Printer data;
  final VoidCallback onTap;

  const PrinterItem({
    Key key,
    this.data,
    this.onTap,
  }) : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Container(
      height: 90.w,
      child: Row(
        mainAxisAlignment: MainAxisAlignment.spaceBetween,
        children: <Widget>[
          Text(
            data.printerName,
            style: TextStyleConstant().normal_1_28,
          ),
          BaseImage(
            'assets/image/select_blue_icon.png',
            width: 40.w,
            height: 40.w,
          ),
        ],
      ),
    );
  }
}
